import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Date;


public class main {

	public main()
	{
		
	}
	
	public static void main(String [] args)
	{
		try {
			properties.Init();
			ServerSocket socket1 = new ServerSocket(properties.Port);
			while(true)
			{    
				Socket connection = null;
				connection = socket1.accept();
				TheDo d1 = new TheDo(connection);
				d1.start();  
			}
			
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
}
